from __future__ import print_function

from utils.data_utils import real_to_cdf


def to_cdf(y, loss=None):
    if loss is None:
        return real_to_cdf(y)
    else:
        return real_to_cdf(y, loss)